package com.scheduling.material.dto;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 原料更新 DTO
 *
 * @author 开发团队
 * @since 2025-05-29
 */
public class MaterialUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 原料ID
     */
    private String materialId;

    /**
     * 原料名称
     */
    private String materialName;

    /**
     * 原料描述
     */
    private String description;

    /**
     * 计量单位
     */
    private String unit;

    /**
     * 安全库存
     */
    private BigDecimal safetyStock;

    // 构造函数
    public MaterialUpdateDTO() {
    }

    // Getter 和 Setter 方法
    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public BigDecimal getSafetyStock() {
        return safetyStock;
    }

    public void setSafetyStock(BigDecimal safetyStock) {
        this.safetyStock = safetyStock;
    }

    @Override
    public String toString() {
        return "MaterialUpdateDTO{" +
                "materialId='" + materialId + '\'' +
                ", materialName='" + materialName + '\'' +
                ", description='" + description + '\'' +
                ", unit='" + unit + '\'' +
                ", safetyStock=" + safetyStock +
                '}';
    }
} 